package com.cmw.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.cmw.core.base.annotation.Description;
import com.cmw.core.base.entity.IdBaseEntity;


/**
 * 会员基本信息
 * 
 * @author chengmingwei
 * @date 2016-05-16T00:00:00
 */
@Description(remark="会员基本信息实体",createDate="2016-05-16T00:00:00",author="xiemin")
@Entity
@Table(name="PTP_Member")

@SuppressWarnings("serial")
public class MemberEntity extends IdBaseEntity {
	
	 @Description(remark="用户名")
	 @Column(name="account" ,nullable=false ,length=50 )
	 private String account;

	 @Description(remark="密码")
	 @Column(name="pwd" ,nullable=false ,length=100 )
	 private String pwd;

	 @Description(remark="会员姓名")
	 @Column(name="rname" ,length=50 )
	 private String rname;

	 @Description(remark="身份证号码")
	 @Column(name="cardno" ,length=50 )
	 private String cardno;

	 @Description(remark="邮箱")
	 @Column(name="email" ,length=50 )
	 private String email;

	 @Description(remark="手机")
	 @Column(name="phone" ,length=50 )
	 private String phone;

	 @Description(remark="身份证是否验证")
	 @Column(name="cardnoPass" ,nullable=false )
	 private Byte cardnoPass = 0;

	 @Description(remark="邮箱是否验证")
	 @Column(name="emailPass" ,nullable=false )
	 private Byte emailPass = 0;

	 @Description(remark="手机是否验证")
	 @Column(name="phonePass" ,nullable=false )
	 private Byte phonePass = 0;

	 @Description(remark="会员等级")
	 @Column(name="mlevel" )
	 private Long mlevel;

	 @Description(remark="用户头像")
	 @Column(name="imgPath" ,length=150 )
	 private String imgPath;

	 @Description(remark="开通托管帐户")
	 @Column(name="openInacc" ,nullable=false ,length=20 )
	 private String openInacc = "0";
	 
	 @Description(remark="会员类型")
	 @Column(name="mtype" ,nullable=false ,length=20 )
	 private Integer mtype = 1;
	 
	 @Description(remark="历史记录ID")
	 @Column(name="historyId" ,length=50 )
	 private String historyId;
	
	 @Description(remark="app手势锁密码")
	 @Column(name="lockerPwd" ,length=12)
	 private String lockerPwd;
	 

	public MemberEntity() {

	}

	
	/**
	  * 设置用户名的值
	 * @param 	account	 用户名
	**/
	public void setAccount(String  account){
		 this.account=account;
 	}

	/**
	  * 获取用户名的值
	 * @return 返回用户名的值
	**/
	public String getAccount(){
		 return account;
 	}

	/**
	  * 设置密码的值
	 * @param 	pwd	 密码
	**/
	public void setPwd(String  pwd){
		 this.pwd=pwd;
 	}

	/**
	  * 获取密码的值
	 * @return 返回密码的值
	**/
	public String getPwd(){
		 return pwd;
 	}

	/**
	  * 设置会员姓名的值
	 * @param 	rname	 会员姓名
	**/
	public void setRname(String  rname){
		 this.rname=rname;
 	}

	/**
	  * 获取会员姓名的值
	 * @return 返回会员姓名的值
	**/
	public String getRname(){
		 return rname;
 	}

	/**
	  * 设置身份证号码的值
	 * @param 	cardno	 身份证号码
	**/
	public void setCardno(String  cardno){
		 this.cardno=cardno;
 	}

	/**
	  * 获取身份证号码的值
	 * @return 返回身份证号码的值
	**/
	public String getCardno(){
		 return cardno;
 	}

	/**
	  * 设置邮箱的值
	 * @param 	email	 邮箱
	**/
	public void setEmail(String  email){
		 this.email=email;
 	}

	/**
	  * 获取邮箱的值
	 * @return 返回邮箱的值
	**/
	public String getEmail(){
		 return email;
 	}

	/**
	  * 设置手机的值
	 * @param 	phone	 手机
	**/
	public void setPhone(String  phone){
		 this.phone=phone;
 	}

	/**
	  * 获取手机的值
	 * @return 返回手机的值
	**/
	public String getPhone(){
		 return phone;
 	}

	/**
	  * 设置身份证是否验证的值
	 * @param 	cardnoPass	 身份证是否验证
	**/
	public void setCardnoPass(Byte  cardnoPass){
		 this.cardnoPass=cardnoPass;
 	}

	/**
	  * 获取身份证是否验证的值
	 * @return 返回身份证是否验证的值
	**/
	public Byte getCardnoPass(){
		 return cardnoPass;
 	}

	/**
	  * 设置邮箱是否验证的值
	 * @param 	emailPass	 邮箱是否验证
	**/
	public void setEmailPass(Byte  emailPass){
		 this.emailPass=emailPass;
 	}

	/**
	  * 获取邮箱是否验证的值
	 * @return 返回邮箱是否验证的值
	**/
	public Byte getEmailPass(){
		 return emailPass;
 	}

	/**
	  * 设置手机是否验证的值
	 * @param 	phonePass	 手机是否验证
	**/
	public void setPhonePass(Byte  phonePass){
		 this.phonePass=phonePass;
 	}

	/**
	  * 获取手机是否验证的值
	 * @return 返回手机是否验证的值
	**/
	public Byte getPhonePass(){
		 return phonePass;
 	}

	/**
	  * 设置会员等级的值
	 * @param 	mlevel	 会员等级
	**/
	public void setMlevel(Long  mlevel){
		 this.mlevel=mlevel;
 	}

	/**
	  * 获取会员等级的值
	 * @return 返回会员等级的值
	**/
	public Long getMlevel(){
		 return mlevel;
 	}

	/**
	  * 设置用户头像的值
	 * @param 	imgPath	 用户头像
	**/
	public void setImgPath(String  imgPath){
		 this.imgPath=imgPath;
 	}

	/**
	  * 获取用户头像的值
	 * @return 返回用户头像的值
	**/
	public String getImgPath(){
		 return imgPath;
 	}

	/**
	  * 设置开通托管帐户的值
	 * @param 	openInacc	 开通托管帐户
	**/
	public void setOpenInacc(String  openInacc){
		 this.openInacc=openInacc;
 	}

	/**
	  * 获取开通托管帐户的值
	 * @return 返回开通托管帐户的值
	**/
	public String getOpenInacc(){
		 return openInacc;
 	}

	/**
	  * 获取会员类型的值
	 * @return 返回会员类型的值
	**/
	public Integer getMtype() {
		return mtype;
	}

	/**
	  * 设置会员类型的值
	 * @param 	mtype	会员类型 
	**/
	public void setMtype(Integer mtype) {
		this.mtype = mtype;
	}

	
	/**
	  * 获取历史记录ID的值
	 * @return 返回历史记录ID的值
	**/
	public String getHistoryId() {
		return historyId;
	}

	/**
	  * 设置历史记录ID的值
	 * @param historyId	历史记录ID	 
	**/
	public void setHistoryId(String historyId) {
		this.historyId = historyId;
	}

	
    /**
     * 获得app手势锁密码的值
     * @return
     */
	public String getLockerPwd() {
		return lockerPwd;
	}

    /**
     * 设置app手势锁密码的值
     * @param lockerPwd
     */
	public void setLockerPwd(String lockerPwd) {
		this.lockerPwd = lockerPwd;
	}


	@Override
	public Object[] getDatas() {
		return new Object[]{id,account,pwd,rname,cardno,email,phone,cardnoPass,emailPass,phonePass,mlevel,imgPath,openInacc,mtype,isenabled,historyId,lockerPwd};
	}

	@Override
	public String[] getFields() {
		return new String[]{"id","account","pwd","rname","cardno","email","phone","cardnoPass","emailPass","phonePass","mlevel","imgPath","openInacc","mtype","isenabled","historyId","lockerPwd"};
	}

}
